﻿using System;

namespace ComputationalCore.Helper
{
    public static class RandomHelper
    {
        private static readonly Random rand = new Random();

        public static int NextInt(int min, int max)
        {
            return rand.Next(min, max);
        }

        public static double NextDouble()
        {
            return rand.NextDouble();
        }

        public static double NextDouble(double multiplier)
        {
            return rand.NextDouble() * multiplier;
        }

        public static double NextDouble(double from, double to)
        {
            return from + (to - from) * rand.NextDouble();
        }
    }
}
